<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo5</title>

</head>
<body>

    <form action="/demo6.do" method="post">
        <table>
            <tr>
                <td>name</td>
                <td><input name="name" /></td>
            </tr>
            <tr>
                <td>pwd</td>
                <td><input name="pwd" /></td>
            </tr>
            <tr>
                <td>birth</td>
                <td><input name="birth" /></td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" value="提交" /></td>
            </tr>
        </table>
    </form>
    {{ msg }}
    <table border="1">
        <caption>用户列表</caption>
        <tr>
            <td>id</td>
            <td>name</td>
            <td>pwd</td>
            <td>birth</td>
        </tr>
        {% for user in user_list %}
        <tr>
            <td>{{ user.id }}</td>
            <td>{{ user.name }}</td>
            <td>{{ user.pwd }}</td>
            <td>{{  user.birth|date:"Y-m-d" }}</td>
        </tr>
        {% endfor %}
    </table>


</body>
</html>